@echo off
set JAVA_HOME="C:\Program Files\Java\jdk1.7.0_09\"

rem Set main test classpath
set CP=bin

rem add additional external classpath
set CP=%CP%;D:\Vega\SeleniumScripts\xstream-1.4.4\lib\xstream-1.4.4.jar
set CP=%CP%;D:\Vega\SeleniumScripts\xstream-1.4.4\lib\xstream\xpp3_min-1.1.4c.jar
set CP=%CP%;D:\Vega\SeleniumScripts\xstream-1.4.4\lib\xstream\xmlpull-1.1.3.1.jar

rem add Selenium Webdriver classpath
set CP=%CP%;D:\Vega\SeleniumScripts\selenium-server-standalone-2.29.0.jar

rem set TestNG classpath
set TEST_NG=org.testng.TestNG

rem set default suit
set SUIT=testng-customsuite.xml
if NOT .%1 == . set SUIT=%1

rem set custom properties
if NOT .%2 == . set JVM_ARGS=%JVM_ARGS% -DconfigFile=%2

%JAVA_HOME%\bin\java -cp  %CP% %JVM_ARGS% %TEST_NG% %SUIT%

pause